import Vue from 'vue'
import axios from 'axios'
import App from './App.vue'
// import VueRouter from 'vue-router'
import ElementUI from 'element-ui'
Vue.config.productionTip = false
// Vue.use(axios)
// Vue.use(VueRouter)
var myaxios = axios.create({
  baseURL: process.env.VUE_APP_URL,
  withCredentials: true,
})
Vue.prototype.$http = myaxios
// 挂载router和vuex
import router from './router'
import store from './store'
Vue.use(ElementUI)
new Vue({
  router, store,
  render: h => h(App),
}).$mount('#app')
